﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masterpages/Admin.master" AutoEventWireup="true" CodeBehind="DivisionEntry.aspx.cs" Inherits="Web.Admin.DivisionEntry" %>
<asp:Content ID="Content1" ContentPlaceHolderID="leftContent" runat="server">
            <div class="grid_8">      
                    <div class="module">
                         <h2><span>Division Record Entry</span></h2>
                        
                         <div class="module-body">
                             <%if(IsSuccess) {%>
                                    <div>
                                        <span class="notification n-success"><%=NotifyText %></span>
                                    </div>
                             <%} %>     

                                <p>
                                    <label>Division Code:</label>
                                    <asp:TextBox ID="DivCodeTxt" runat="server" CssClass="input-short"></asp:TextBox>
                                    <asp:HiddenField ID="DivisionId" runat="server" />
                                </p>
                                <p>
                                    <label>Division Name:</label>
                                    <asp:TextBox ID="DivNameTxt" runat="server" CssClass="input-long"></asp:TextBox>
                                </p>
                                <p>
                                    <label>Signatory:</label>
                                    <asp:TextBox ID="DivSignatoryTxt" runat="server" CssClass="input-long"></asp:TextBox>
                                </p>
                                <fieldset>
                                    <asp:Button id="SubmitBtn" runat="server" Text="Submit" CssClass="submit-green" 
                                        onclick="SubmitBtn_Click" />                                                                                                            
                                    <asp:Button id="CancelBtn" runat="server" Text="Clear & Cancel" 
                                        CssClass="submit-gray" onclick="CancelBtn_Click" />    
                                </fieldset>                                                    
                         </div> <!-- End .module-body -->
                    </div> <!-- End .module -->
                    <div style="clear:both;"></div>   
                    <div class="module">
                         <h2><span>Division List Table</span></h2>
                     
                         <div class="module-body">                                                      
   
                         <asp:Repeater ID="repeater" runat="server" onitemcommand="repeater_ItemCommand" >
                            <HeaderTemplate>
                                <table width="100%" border="0" class="tablesorter">
                                    <thead>
                                        <th>CODE</th>
                                        <th>NAME</th>
                                        <th>SIGNATORY</th>                                        
                                        <th width="15%"></th>
                                    </thead>
                                    <tbody>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="odd">                                    
                                    <td><asp:Literal ID="CodeTxt" runat="server" Text=<%# Eval("Code")%> ></asp:Literal></td>                                        
                                    <td><asp:Literal ID="NameTxt" runat="server" Text=<%# Eval("Name")%>></asp:Literal></td>                                    
                                    <td><asp:Literal ID="SignatoryTxt" runat="server" Text=<%# Eval("Signatory")%>></asp:Literal></td>                                                                        
                                    <td>                                        
                                        <asp:ImageButton ID="SaveLinkBtn" runat="server" ImageUrl="/images/pencil.gif" Width="16" Height="16" AlternateText="edit" CommandName="update" CommandArgument=<%# Eval("Id")%> />
                                        <asp:ImageButton ID="DeleteLinkBtn" runat="server" ImageUrl="/images/bin.gif" Width="16" Height="16" AlternateText="delete" CommandName="delete"  CommandArgument=<%# Eval("Id")%> OnClientClick="return confirm('Confirm Delete?');" />                                        
                                    </td>
                                </tr>                            
                            </ItemTemplate>
                            <AlternatingItemTemplate>
                                <tr class="even">                                    
                                    <td><asp:Literal ID="CodeTxt" runat="server" Text=<%# Eval("Code")%> ></asp:Literal></td>                                        
                                    <td><asp:Literal ID="NameTxt" runat="server" Text=<%# Eval("Name")%>></asp:Literal></td>                                    
                                    <td><asp:Literal ID="SignatoryTxt" runat="server" Text=<%# Eval("Signatory")%>></asp:Literal></td>                                                                        
                                    <td>                                        
                                        <asp:ImageButton ID="SaveLinkBtn" runat="server" ImageUrl="/images/pencil.gif" Width="16" Height="16" AlternateText="edit" CommandName="update" CommandArgument=<%# Eval("Id")%> />
                                        <asp:ImageButton ID="DeleteLinkBtn" runat="server" ImageUrl="/images/bin.gif" Width="16" Height="16" AlternateText="delete" CommandName="delete"  CommandArgument=<%# Eval("Id")%> OnClientClick="return confirm('Confirm Delete?');" />                                        
                                    </td>
                                </tr>                            
                            </AlternatingItemTemplate>
                            <FooterTemplate>
                                    </tbody>
                                </table>
                            </FooterTemplate>
                         </asp:Repeater>                            
                                                   
                         </div> <!-- End .module-body -->

                    </div>  <!-- End .module -->        		   
                                                            
            </div>
</asp:Content>
